package com.fac.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 管理端支付记录分页查询DTO
 */
@Data
@ApiModel(description = "管理端支付记录分页查询参数")
public class PaymentAdminPageQueryDTO implements Serializable {

    @NotNull(message = "页码不能为空")
    @Min(value = 1, message = "页码必须大于0")
    @ApiModelProperty(value = "页码", example = "1", required = true)
    private Integer page = 1;

    @NotNull(message = "每页显示记录数不能为空")
    @Min(value = 1, message = "每页显示记录数必须大于0")
    @ApiModelProperty(value = "每页显示记录数", example = "10", required = true)
    private Integer size = 10;

    @ApiModelProperty(value = "支付状态：0未支付，1已支付", example = "1")
    private Integer status;

    @ApiModelProperty(value = "订单类型：租赁单/维修单", example = "租赁单")
    private String orderType;

    @ApiModelProperty(value = "用户ID", example = "1")
    private Long userId;
} 